package edu.scau.ojforwarder.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class NowcoderStatus implements Cloneable {
    public static final String PENDING = "pending";             //等待提交
    public static final String SUBMIT_FAILED = "submit failed"; //提交失败
    public static final String QUEUING = "queuing";             //等待判题

    private String submissionId;
    private String runId;
    private String status = PENDING;
    private int result;
    private String probNum;
    private String contestId;
    private String exeTime;
    private String exeMemory;
    private String desc;
    private String memo;

    @JsonIgnore
    private NowcoderError error;

    public void setSubmissionId(String submissionId) {
        this.submissionId = submissionId;
    }

    public void setRunId(String runId) {
        this.runId = runId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setProbNum(String probNum) {
        this.probNum = probNum;
    }

    public void setContestId(String contestId) {
        this.contestId = contestId;
    }

    public void setExeTime(String exeTime) {
        this.exeTime = exeTime;
    }

    public void setExeMemory(String exeMemory) {
        this.exeMemory = exeMemory;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setError(NowcoderError error) {
        this.error = error;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getSubmissionId() {
        return submissionId;
    }

    public String getRunId() {
        return runId;
    }

    public String getStatus() {
        return status;
    }

    public String getProbNum() {
        return probNum;
    }

    public String getContestId() {
        return contestId;
    }

    public String getExeTime() {
        return exeTime;
    }

    public String getExeMemory() {
        return exeMemory;
    }

    public String getDesc() {
        return desc;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public NowcoderError getError() {
        return error;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
